package com.wnxy.admin.service;

import com.github.pagehelper.PageInfo;
import com.wnxy.admin.dto.JChargingPileDto;
import com.wnxy.admin.dto.JChargingStationDto;

import com.wnxy.admin.entity.ChargingPile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.admin.dto.ChargingPileDto;
import com.wnxy.admin.dto.ReservationChargingPileDto;
import com.wnxy.admin.entity.ChargingPile;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 充电桩 服务类
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
public interface IChargingPileService extends IService<ChargingPile> {

    PageInfo<JChargingPileDto> findByPage(String chargingPileName, int pageNum, int pageSize);

    int updateById(JChargingPileDto jChargingPileDto);
//    Long updateById(JChargingPileDto jChargingPileDto);
    List<ReservationChargingPileDto> getAllFromReservation();

    void updatePileStateById(Long id, String pileState);

    void switchPileState(String chargingPileNumber, String pileState);

    List<JChargingPileDto> listDto();

}
